<!DOCTYPE html>
{% extends 'base.html' %}
{% load static %}

{% block title %}
    -修改密码
{% endblock %}


{% block css %}
    {% static 'css/userCentre.css' %}
{% endblock %}
{% block userHighlight %}
    active
{% endblock %}
{% block main_block %}
    {% if messages %}
        <script>
            {% for msg in messages %}
                alert('{{ msg.message }}');
            {% endfor %}
        </script>
    {% endif %}
    <div>

        <form class="form-group" action="" method="POST" style="margin-top: 3%;margin-left: 30%;width: 40%">
            <h2>修改密码</h2>
            <hr/>
            {% csrf_token %}
            <p><label for="id_old_password">旧密码:</label>
                <input type="password" name="old_password" autofocus=""
                       required="" id="id_old_password"></p>
            <p><label for="id_new_password1">新密码:</label>
                <input type="password" name="new_password1" required=""
                       id="id_new_password1"> <span class="helptext"></span>
            </p>
            注意：你的密码必须包含至少 8 个字符,且不能全部为数字。
            <p></p>
            <p><label for="id_new_password2">新密码确认:</label>
                <input type="password" name="new_password2" required="" id="id_new_password2"></p>
            <button class="btn btn-primary" type="submit" style="width: 100%">确定</button>
        </form>
    </div>

{% endblock %}